<article class="module width_half" style="margin-bottom: 20px;">
	<table width="100%" cellspacing="0" cellpadding="1" bgcolor="#ababab">
		<tbody>
			<tr>
				<td height="5" bgcolor="#ffffff" colspan="2"></td>
			</tr>
			<tr>
				<td align="center">
					<table width="100%" cellspacing="2" cellpadding="0" border="0" bgcolor="#dcdcdc" align="center">
						<tbody>
							<tr>
								<td width="20%" valign="top" align="right"><b>Tiêu đề:&nbsp;&nbsp;</b></td>
								<td width="80%" valign="top" align="left"><?php echo $report->tittle; ?></td>
							</tr>
							<tr>
								<td width="20%" valign="top" align="right"><b>Người gửi:&nbsp;&nbsp;</b></td>
								<td width="80%" valign="top" align="left">
									<?php 
										$this->load->model('UserModel');
										if ($report->student_id != 0) $student_name = $this->UserModel->get($report->student_id)->user;
										if ($report->teacher_id != 0) $teacher_name = $this->UserModel->get($report->teacher_id)->user;
										$this->load->model('CompanyModel');
										//if ($item->company_id != 0) $company_name = $this->CompanyModel->get($item->company_id)->email;
										if($type == 1) echo $teacher_name."@vnu.edu.vn";
										else echo $student_name."@vnu.edu.vn";
									?>
								</td>
							</tr>
							<tr>
								<td width="20%" valign="top" align="right"><b>Ngày:&nbsp;&nbsp;</b></td>
								<td width="80%" valign="top" align="left"><?php echo date('d-m-Y', strtotime($report->time)); ?></td>
							</tr>	
						</tbody>
					</table>
				</td>
			</tr>
			<tr>
				<td height="5" bgcolor="#ffffff" colspan="2"></td>
			</tr>
		</tbody>
	</table>
	<table width="100%" cellspacing="5" cellpadding="1" border="0" align="center">
		<tbody>
			<tr>
				<td><br>
					<pre><?php echo $report->content; ?></pre>
				</td>
			</tr>
			<tr>
				<td height="5" bgcolor="#ffffff" colspan="2"></td>
			</tr>
			<tr width="100%" cellspacing="0" cellpadding="0" bgcolor="#ababab">
				<td align="left"><b>Các tệp đính kèm:</b></td>
			</tr>
			<tr>
				<td>
					<table width="100%" cellspacing="2" cellpadding="2" bgcolor="#dcdcdc">
						<tbody>
							<tr>
								<td><?php echo $report->file; ?></td>
								<td><?php echo anchor('/report/download/' . $report->file, 'Download');?></td>
							</tr>
						</tbody>
					</table>
				</td>
			</tr>
		</tbody>
	</table>
</article>